<?php 
	require 'Admin/ViewModel.php';
	class Controller{
		protected $model;
		protected $view;
		function __Construct(){
			$c = isset($_GET['c'])?$_GET['c']:'user';
			$m = isset($_GET['m'])?$_GET['m']:'index';
			$this->view = new ViewModel($c.'/'.$m);
		}
		 function display(){
			$this->view->display();
		}

		function assign($var,$value){
			$this->view->assign($var,$value);
		}

	
	}
 ?>